In [3]:
!pip install pivottablejs --user
Collecting pivottablejs
  Downloading pivottablejs-0.1.0-py2.py3-none-any.whl
Installing collected packages: pivottablejs
Successfully installed pivottablejs-0.1.0
In [8]:
import pandas
In [9]:
auto = pandas.read_csv("http://www-bcf.usc.edu/~gareth/ISL/Auto.csv")
In [12]:
auto.head()
Out[12]:
mpg cylinders displacement horsepower weight acceleration year origin name
0 18 8 307 130 3504 12.0 70 1 chevrolet chevelle malibu
1 15 8 350 165 3693 11.5 70 1 buick skylark 320
2 18 8 318 150 3436 11.0 70 1 plymouth satellite
3 16 8 304 150 3433 12.0 70 1 amc rebel sst
4 17 8 302 140 3449 10.5 70 1 ford torino
In [10]:
from pivottablejs import pivot_ui
In [11]:
pivot_ui(auto)
Out[11]: